#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "public.h"
#include "file.h"

struct package pk;

/*
 * function abstruct : data analy.
 * parameter illustration: 
 *		[len]: buffer length; [rev_buf]: string buffer.
 */
int receive_data_analy(int len, unsigned char * rev_buf)
{
	//extract_data((char *)rev_buf, len);	
    //enqueue(&queue_ac, (char *)rev_buf);
	extract_data_ac((char *)rev_buf, len);	

	return 0;
}

/*
 * function abstruct : data analy.
 * parameter illustration: 
 *		[len]: buffer length; [rev_buf]: string buffer.
 */
int receive_data_analy_bd(int len, unsigned char * rev_buf)
{	
	//extract_data_bd((char *)rev_buf, len);	
    //enqueue(&queue_bd, (char *)rev_buf);
	extract_bd((char *)rev_buf, len);

	return 0;
}

